package com.luoye.lj.platform.model.domain;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Dave Liu
 * Date: 15-11-2
 * Time: 下午11:06
 * To change this template use File | Settings | File Templates.
 */
public class RoleSaveInfo {
    private long id=-1;
    private String rolename;
    private String description;
    private long delmark=-1;
    private List<AuthInfo> auths;
    private int roletype=-1;

    public RoleSaveInfo(RoleInfo role){
        this.rolename = role.getRolename();
        this.description = role.getDescription();
        this.id = role.getId();
        this.roletype=role.getRoletype();
    }

    public RoleSaveInfo(){

    }
    public List<AuthInfo> getAuths() {
        return auths;
    }

    public void setAuths(List<AuthInfo> auths) {
        this.auths = auths;
    }


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public long getDelmark() {
        return delmark;
    }

    public void setDelmark(long delmark) {
        this.delmark = delmark;
    }

    public int getRoletype() {
        return roletype;
    }

    public void setRoletype(int roletype) {
        this.roletype = roletype;
    }

    @Override
    public String toString() {
        return "RoleSaveInfo{" +
                "id=" + id +
                ", rolename='" + rolename + '\'' +
                ", description='" + description + '\'' +
                ", delmark=" + delmark +
                ", auths=" + auths +
                ", roletype=" + roletype +
                '}';
    }
}
